﻿using DevExpress.XtraGrid.Demos.util;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Luna小店.DTO
{
    public class CADFilesDTO
    {
        public String Host { get; set; }//文件的所属（版型id，款式id）
        public List<CADFileDTO> CADFiles = new List<CADFileDTO>();
        public CADFilesDTO(String host,String json)
        {
            this.Host = host;
            this.CADFiles = FunctionHelper.JsonDeserialization<List<CADFileDTO>>(json);
        }
        /// <summary>
        /// 序列化方法
        /// </summary>
        /// <returns></returns>
        public String Serialization()
        {
            return FunctionHelper.JsonSerialization(this);
        }
    }
    /// <summary>
    /// cad文件
    /// </summary>
    public class CADFileDTO
    {
        public String FileName { get; set; }//文件名
        public String File { get; set; }//文件字节流
    }
}
